<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('shopsize/index')}">商品尺寸</a></li>
			<li><a href="{:U('shopsize/add')}">添加尺寸</a></li>
		</ul>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>尺寸名称</th>
						<th>尺寸加价</th>
						<th>状态</th>
						<th width="120">操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="slidecats" item="vo">
					<tr>
						<td>{$vo.size_id}</td>
						<td>{$vo.size_name}</td>
						<td>{$vo.size_price}</td>
						<td>
							<if condition="$vo['cat_status'] eq 1">
								启用
								<else />
								禁用
							</if>
						</td>
						<td>
							<a href="{:U('shopsize/edit',array('id'=>$vo['size_id']))}">编辑</a>|
							<a href="{:U('shopsize/delete',array('id'=>$vo['size_id']))}" class="js-ajax-delete">删除</a>|
							<if condition="empty($vo['cat_status']) eq 1">
								<a href="{:U('shopsize/cancelban',array('id'=>$vo['size_id']))}" class="js-ajax-dialog-btn" data-msg="确定启用吗？">启用</a>
								<else />
								<a href="{:U('shopsize/ban',array('id'=>$vo['size_id']))}" class="js-ajax-dialog-btn" data-msg="确定禁用吗？">禁用</a>
							</if>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>